package exception;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ThrowsDemo {
    public void doSomething() throws IOException, AWTException{

    }
}

class SubClass extends ThrowsDemo{
    //public void doSomething() throws IOException, AWTException{}
    //
    //public void doSomething() throws IOException{}
    //public void doSomething() {}
    public void doSomething() throws FileNotFoundException {}

}
